<?php
#actinium is our loader. Here is what the 
#include ("actinium/actinuium.php");
#$User = $actinium->load("Page");
#controllers call the work which is the load function
#core and models are the horsepower.
global $actinium = new actinium();
class actinium {
		//our model class the horsepower of the controllers
	  #public function do($sModelName, $sParams=NULL) {
	   #     $sModelFile = "/actinium/"."/models/" . "model" . $sModelName . ".php";
	   #     // Check if the file name exists and include if it does
	   #     if (file_exists($sModelFile)) {include_once($sModelFile);} 
	   #     // create the object and return it
	   #     return new $sModelName($sParams);
	 #   }
	    
		// The bottom two do the exact same thing except the do is our controllers
		//example of a controller would be us telling actinium what we are doing.		
	    public function load($sControllerName,$sParams=NULL) {
	        $sControllerFile = "/actinium/"."/controllers/". $sControllerName . ".php";
	        if (file_exists($sControllerFile)) {include_once($sControllerFile);}
	        return new $sControllerName($sParams);
	    }
		//must have files.
	   # public function core($sCoreName,$sParams=NULL) {
	   #     $sCoreFile ="/actinium/"."/core/". $sCoreName . ".php";
	   #     if (file_exists($sCoreFile)) {include_once($sCoreFile);}
	   #     return new $sCoreName($sParams);
	#   }
		
		//this is the classes the user would like to add based to keep their php organized.
		public function featuring($sSpecialName,$sParams=NULL) {
		        $sCoreFile ="/actinium/"."/special/". $sSpecialName . ".php";
		        if (file_exists($sSpecialName)) {include_once($sSpecialName);}
		        return new $sSpecialName($sParams);
	    }
}